package tk.hongbo.stream

import android.net.Uri
import org.junit.Assert.assertEquals
import org.junit.Test

/**
 * Example local unit test, which will execute on the development machine (host).
 *
 * See [testing documentation](http://d.android.com/tools/testing).
 */
class ExampleUnitTest {
    @Test
    fun addition_isCorrect() {
        assertEquals(4, 2 + 2)
    }

    @Test
    fun parseUrl() {
        val url =
            "zxjtoa://www.zxjt.com/loadUrl/param?url=www.baidu.com&showTitleBar=1&showOptionMenu=0"
        val uri = Uri.parse(url)
        val showTitleBar = uri.getQueryParameter("showTitleBar")

    }
}